
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo  $title ;?></title>
<script src="/static/js/jquery-1.10.2.min.js" type="text/javascript"></script>
<link rel="stylesheet" href="/static/css/reset.css" type="text/css" media="all" />

<style type="text/css">
.table_border td {border:1px solid #ccc; height:25px; line-height:25px; padding-left:10px;}
.search {padding: 10px;border: 1px dashed #ccc;margin-bottom: 5px;}

.pagination{ clear:both; margin:10px 0; }
.pagination em, .pagination a, .pagination strong{ text-decoration:none; margin-left:5px; padding:2px 5px; border:1px solid #E5E5E5; }
.pagination a:hover{ text-decoration:none; border:1px solid #09C; background:#09C; color:#FFF; }
.pagination strong{ border:none; font-weight:700; }

.main { width:1002px; min-height:500px;margin:30px auto 0;}
.word_list {width:100%; margin-top:30px;}
.option{cursor: pointer;}
</style>
</head>

<body>

<div class="main">
	<table class="table_border word_list">
		<tr>
			<td colspan="9" align="center">cookies状态</td>
		</tr>    
		<tr>
			<td>账号</td>
			<td>cookie创建时间</td>
			<td>上次使用时间</td>
			<td>上次登陆时间</td>
			<td>使用次数</td>
			<td>状态</td>
			<td>错误信息</td>
		
		</tr>
		<?php 
		foreach($cookies as $cookie) {
			if(1==$cookie->status)
			{
				$s="正常" ;
			}
			elseif(-1==$cookie->status)
			{
				$s="不正常" ;
			}
			elseif(-2==$cookie->status)
			{
				$s="无cookie" ;
			}
			else 
			{
				
			}
				
			?>
		<tr>
			<td><?=$cookie->username?></td>
			<td><?=date('Y-m-d H:i:s',$cookie->cookie_created)?></td>
			<td><?=date('Y-m-d H:i:s',$cookie->last_usetime)?></td>
			<td><?=date('Y-m-d H:i:s',$cookie->last_logintime)?></td>
			<td><?=$cookie->times?></td>
			<td><?=$s?></td>
			<td><?=$cookie->error_msg?></td>
	
		</tr>
		<?php }?>
	</table>

							

</div>
</body>
</html>








